//6.
#include<stdio.h>
int main()
{
	int a[10] = {0};
	int sum = 0,n = 0;
	float avge = 0.0f;
	
	printf("please input 10 integer:");
	for(int i=0;i<10;i++)
	{
		scanf("%d",&a[i]);	
	}	
	for(int i=0;i<10;i++)
	{
		if(a[i] > 0)
		{
			n++;
			sum += a[i];
			printf("%d ",a[i]);
		}
	}
	avge = sum*1.0 / n;
	printf("\n%f\n",avge);
	return 0;
}
